﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ScenceChange : MonoBehaviour
{
    public static bool UR5Scence_Change = true;

    public GameObject scenceUR5;
    public GameObject scenceIRB4600;

    

    private void NextScence_Change()
    {
        if(UR5Scence_Change == true)
        {
            scenceUR5.SetActive(true);
            scenceIRB4600.SetActive(false);
        }
        if(UR5Scence_Change == false)
        {
            scenceUR5.SetActive(false);
            scenceIRB4600.SetActive(true);
        }
    }

    // Update is called once per frame
    void Update()
    {
        if(Input.GetKeyDown(KeyCode.J))
        {
            UR5Scence_Change = true;
        }
        if(Input.GetKeyDown(KeyCode.K))
        {
            UR5Scence_Change = false;
        }
        NextScence_Change();
    }
}
